HTML Text Formatting
    Text Formatting
    This text is bold
    This text is italic
    This is subscript and superscript
    HTML Formatting Elements

    In the previous chapter, you learned about the HTML style attribute.
    HTML also defines special elements for defining text with a special meaning.
    HTML uses elements like and for formatting output, like bold or italic text.

    Formatting elements were designed to display special types of text:

    - Bold text
    - Important text
    - Italic text
    - Emphasized text
    - Marked text
    - Small text
    - Deleted text
    - Inserted text

    - Subscript text
    - Superscript text
    HTML and Elements
    The HTML element defines bold text, without any extra importance.

    Example
    This text is bold
    The HTML element defines strong text, with added semantic "strong" importance.
    Example
    This text is strong
    HTML and Elements
    The HTML element defines italic text, without any extra importance.
    Example
    This text is italic
    The HTML element defines emphasized text, with added semantic importance.
    Example
    This text is emphasized
    Note: Browsers display as , and as . However, there is a difference in the meaning of these tags:
    and defines bold and italic text, but and means that the text is "important".
    HTML Element
    The HTML element defines smaller text:
    Example

    HTML Small Formatting


    HTML Element
    The HTML element defines marked or highlighted text:
    Example

    HTML Marked Formatting


    HTML Element
    The HTML element defines deleted (removed) text.
    Example

    My favorite color is blue red.


    HTML Element
    The HTML element defines inserted (added) text.
    Example

    My favorite color is red.


    HTML Element
    The HTML element defines subscripted text.
    Example

    This is subscripted text.


    HTML Element
    The HTML element defines superscripted text.
    Example

    This is superscripted text.